<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <input type="text" />
  <ul></ul>
</body>
<script>
  let ipt = document.querySelector("input");
  let ul = document.querySelector("ul");
  ipt.onkeyup = function () {
    let val = ipt.value;
    let script = document.createElement("script");
    script.src = 'https://suggest.taobao.com/sug?code=utf-8&q=' + val + '&_ksTS=1591257683085_275&callback=jsonp&k=1&area=c2c&bucketid=18';
    document.body.appendChild(script);
  };
  function jsonp(data) {  
    let result = data.result;
    let str = "";
    result.forEach((item) => {
      str += '<li>' + item[0] + '</li>'
    });
    ul.innerHTML = str;
  }
</script>
</html>